package com.yzh.springboot_rbac.service;

import com.yzh.springboot_rbac.entity.DictType;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 字典类型服务层接口
 */
@Service
public interface DictTypeService {
    /*1.添加字典类型数据*/
    int insertDictType(DictType dict);

    /*2.查询所有字典类型*/
    List<DictType> selectDictTypeAll();

    /*3.根据条件查询字典类型*/
    List<DictType> selectDictTypeByConditon(DictType dictType);

    /*4.修改字典类型*/
    int updateDictType(DictType dictType);

    /*辅助方法*/
    DictType selectDictTypeById(Long dictId);

    /*5.删除字典类型*/
    Boolean deleteDictTypeByIds(long[] dictIds);


    /*6.加载字典缓存数据*/

    void loadingDictCache();

    /*7.清空字典缓存*/
    void clearDictCache();


    /*8.重置字典缓存数据*/
    void resetDictCache();




}
